# -*- coding: utf-8 -*-
if __name__ == '__main__':
    scores = [4, 5, 6, 5]
    ages = [2, 1, 2, 1]
    arr = list(zip(ages, scores))
    arr.sort(key=lambda x: (x[0], x[1]))
    print(arr)
